from PyQt5.QtCore import QObject
from time import time


class Pour(QObject):
    def __init__(self, timeout, exec_time):
        super(Pour, self).__init__()
        self.timeout = timeout + time()
        self.exec_time = exec_time
        self.hold_index = 0

    # get time
    def get_timeout(self):
        return self.timeout

    def set_timeout(self, timeout):
        self.timeout = timeout

    def get_exec_time(self):
        return self.exec_time

    def set_exec_time(self, exec_time):
        self.exec_time = exec_time

    def get_hold_index(self):
        return self.hold_index

    def set_hold_index(self, index):
        self.hold_index = index
